import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity()
export class Oauth2AuthorizationConsent {
  @PrimaryColumn({
    type: 'varchar',
    length: 100,
    name: 'registered_client_id'
  })
  registeredClientId: string;

  @PrimaryColumn({
    type: 'varchar',
    length: 200,
    name: 'principal_name'
  })
  principalName: string;

  @Column({
    type: 'varchar',
    length: 1000
  })
  authorities: string;
}
